package com.siqi.hr.system.custom.filter;

/**
 * bootstrap表格数据分页参数对象
 * @author    xiaogq
 * Created by xiaogoingqin on 2016/8/22.
 */
public class BaseFilter {
    /**
     * 搜索内容
     */
    private String search;
    /**
     * 排序字段名
     */
    private String sort;

    /**
     * 排序方式(asc:升序，desc:降序)
     */
    private String order;

    /**
     * 每页显示多少条数据
     */
    private int limit;

    /**
     * 每页数据第一条数据的偏移量
     */
    private int offset;

    /**
     * 是否分页(true:分页，false：不分页)
     * @return
     */
    private boolean usepager;

    /**
     * 是否使用bootstrap模糊查询(true:是，false:否)
     */
    private boolean isBootstrapQuery = false;

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public int getOffset() {
        return offset;
    }

    public void setOffset(int offset) {
        this.offset = offset;
    }

    public boolean isUsepager() {
        return usepager;
    }

    public void setUsepager(boolean usepager) {
        this.usepager = usepager;
    }

    public String getSearch() {
        return search;
    }

    public void setSearch(String search) {
        this.search = search;
    }

    public boolean isBootstrapQuery() {
        return isBootstrapQuery;
    }

    public void setBootstrapQuery(boolean bootstrapQuery) {
        isBootstrapQuery = bootstrapQuery;
    }
}
